package net.vkits.common.config;

import net.vkits.common.push.PushService;
import net.vkits.common.push.TestPushService;
import net.vkits.common.push.umeng.UmengPushService;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;

/**
 * Created by ethan-liu on 2016/11/24.
 */
@Configuration
public class PushConfig {
    @Bean
    @Profile("demo")
    public PushService umengPushService() {
        return new UmengPushService();
    }

    @Bean
    @Profile("dev")
    public PushService testPushService() {
        return new TestPushService();
    }
}
